package com.wxh.controller;

import com.wxh.domain.FlightTickets;
import com.wxh.service.FlightTicketsService;
import com.wxh.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wxh
 * @version 1.0
 * @date 2020/4/15 14:26
 */
@RestController
@RequestMapping(value = "flightTickets")
public class FlightTicketsController {
    @Autowired
    private FlightTicketsService flightTicketsService;

    @RequestMapping(value = "queryAll")
    public Result queryAll(){
        List<FlightTickets> list= this.flightTicketsService.list();
        return  new Result(200,list);
    }

}
